package br.edu.ufcg.lsd.wbis.ui.client.ui.loggedin.admin;

import br.edu.ufcg.lsd.wbis.ui.client.beans.UserInfo;
import br.edu.ufcg.lsd.wbis.ui.client.ui.loggedin.admin.home.registered.UserInfoViewerToolbar;
import br.edu.ufcg.lsd.wbis.ui.client.ui.management.InfoManager;

import com.gwtext.client.widgets.TabPanel;
import com.gwtext.client.widgets.layout.ColumnLayout;
import com.gwtext.client.widgets.portal.Portlet;

/**
 * @author Renato Miceli
 */
public class UserInfoPortlet extends Portlet {

	public UserInfoPortlet(UserInfo info, TabPanel centerPanel, InfoManager<UserInfo> loggedManager) {

		this.setTitle("User Info");
		this.setLayout(new ColumnLayout());

		this.add(new UserInfoPanel(info));
		this.add(new UserInfoViewerToolbar(info, centerPanel, loggedManager));
	}

}